
#ifndef _RETCODEMX_H_
#define _RETCODEMX_H_

#if 1
#define retCode_success       0
#define retCode_paramNULL     -1
#define retCode_paramInvalid  -2
#define retCode_notSupported  -10
#define retCode_errorCalloc   -11
#define retCode_errorState    -12
#define retCode_errorTryAgain -13
#define retCode_outSupported  -14
#define retCode_errorNew      -15
#define retCode_errorListType -16
#define retCode_errorNotFound -17
#define retCode_errorSendErr  -18
#define retCode_errorRecvErr  -19
#define retCode_errorCommandErr  -20
#define retCode_erroropen  -21
#define retCode_errorListFull  -22

#else
const int retCode_success      = 0;//成功
const int retCode_paramNULL    = -1;//参数错误
const int retCode_paramInvalid = -2;//参数错误
const int retCode_notSupported = -10;//会支持，但还没有完全支持
const int retCode_errorCalloc  = -11;//
const int retCode_errorState   = -12;//
const int retCode_errorTryAgain= -13;//
const int retCode_outSupported = -14;//不支持。
const int retCode_errorNew     = -15;//
const int retCode_errorListType= -16;//
#endif

typedef enum RetCode{
	kRetCodeSuccess      = 0,
	kRetCodeParamNULL    = -1,
	kRetCodeParamInvalid = -2,
	kRetCodeOpenErr      = -3,
	kRetCodeNotSupported = -10,
	kRetCodeMemoryErr    = -11,
	kRetCodeStateErr     = -12,
	kRetCodeTryAgain     = -13,
	kRetCodeOutSupport   = -14,
	kRetCodeNewErr       = -15,
	kRetCodeListTypeErr  = -16,
	kRetCodeNotFound     = -17,
	kRetCodeErrorSendErr = -18,
	kRetCodeErrorRecvErr = -19,	
	kRetCodeErrorCommandErr = -20,
	kRetCodeJsonValueNull    = -21,
	kRetCodeJsonParseFailure = -22,
}RetCode;

#endif


